determine the size of a string